<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: eosio::fixed_point32&lt; Q &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceeosio.html">eosio</a></li><li class="navelem"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structeosio_1_1fixed__point32-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">eosio::fixed_point32&lt; Q &gt; Struct Template Reference<div class="ingroups"><a class="el" href="group__contractdev.html">Smart Contract API Reference</a> &raquo; <a class="el" href="group__mathapi.html">Math API</a> &raquo; <a class="el" href="group__mathcppapi.html">Math C++ API</a> &raquo; <a class="el" href="group__fixedpoint.html">Fixed Point</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>32 bits representation of Fixed Point class.  
 <a href="structeosio_1_1fixed__point32.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="fixedpoint_8hpp_source.html">fixedpoint.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ga81c6f339a55c8327935ef972ebdb278d"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga81c6f339a55c8327935ef972ebdb278d"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga81c6f339a55c8327935ef972ebdb278d">fixed_point32</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:ga81c6f339a55c8327935ef972ebdb278d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7ad1f82c49b206575fccf8b736815d7c"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga7ad1f82c49b206575fccf8b736815d7c"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga7ad1f82c49b206575fccf8b736815d7c">fixed_point32</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:ga7ad1f82c49b206575fccf8b736815d7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7b7646354bc934510228ca1bd53e6b1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#af7b7646354bc934510228ca1bd53e6b1">fixed_point32</a> (<a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> param=0)</td></tr>
<tr class="separator:af7b7646354bc934510228ca1bd53e6b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad877eb1cdb682c9c1412204a304c1300"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#ad877eb1cdb682c9c1412204a304c1300">int_part</a> () const</td></tr>
<tr class="memdesc:ad877eb1cdb682c9c1412204a304c1300"><td class="mdescLeft">&#160;</td><td class="mdescRight">To get the integer part of the fixed number.  <a href="#ad877eb1cdb682c9c1412204a304c1300">More...</a><br /></td></tr>
<tr class="separator:ad877eb1cdb682c9c1412204a304c1300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41ff73528b152e09796cde085fac502d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a41ff73528b152e09796cde085fac502d">frac_part</a> () const</td></tr>
<tr class="separator:a41ff73528b152e09796cde085fac502d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58d7f252b05e4d5af1376741f8f6f80b"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a58d7f252b05e4d5af1376741f8f6f80b"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a58d7f252b05e4d5af1376741f8f6f80b">operator=</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a58d7f252b05e4d5af1376741f8f6f80b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3746c182de95876fcbf5784b620d4aed"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a3746c182de95876fcbf5784b620d4aed"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a> &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a3746c182de95876fcbf5784b620d4aed">operator=</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a3746c182de95876fcbf5784b620d4aed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a031984309854b00133383caa360dfaef"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a031984309854b00133383caa360dfaef"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a031984309854b00133383caa360dfaef">operator+</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="separator:a031984309854b00133383caa360dfaef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b853041cdc62f50f21067198ea5d20c"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a8b853041cdc62f50f21067198ea5d20c"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a8b853041cdc62f50f21067198ea5d20c">operator-</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="separator:a8b853041cdc62f50f21067198ea5d20c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e18faa394f294b64783e6b46b5d88d6"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga6e18faa394f294b64783e6b46b5d88d6"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; Q+QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga6e18faa394f294b64783e6b46b5d88d6">operator*</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="memdesc:ga6e18faa394f294b64783e6b46b5d88d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiplication operator for <a class="el" href="structeosio_1_1fixed__point32.html" title="32 bits representation of Fixed Point class. ">fixed_point32</a>. The result goes to <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>.  <a href="group__fixedpoint.html#ga6e18faa394f294b64783e6b46b5d88d6">More...</a><br /></td></tr>
<tr class="separator:ga6e18faa394f294b64783e6b46b5d88d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabeb73cfe2cf17016a4ad843f3a8a229c"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:gabeb73cfe2cf17016a4ad843f3a8a229c"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; Q+32-QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#gabeb73cfe2cf17016a4ad843f3a8a229c">operator/</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r) const</td></tr>
<tr class="memdesc:gabeb73cfe2cf17016a4ad843f3a8a229c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Division of two <a class="el" href="structeosio_1_1fixed__point32.html" title="32 bits representation of Fixed Point class. ">fixed_point32</a> result will be stored in <a class="el" href="structeosio_1_1fixed__point64.html" title="64 bits representation of Fixed Point class. ">fixed_point64</a>.  <a href="group__fixedpoint.html#gabeb73cfe2cf17016a4ad843f3a8a229c">More...</a><br /></td></tr>
<tr class="separator:gabeb73cfe2cf17016a4ad843f3a8a229c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a0bf6847a222bf4055736839675a92c"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a7a0bf6847a222bf4055736839675a92c"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a7a0bf6847a222bf4055736839675a92c">operator==</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a7a0bf6847a222bf4055736839675a92c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dcd57ee7c9f558a74d8ce561666745d"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a6dcd57ee7c9f558a74d8ce561666745d"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a6dcd57ee7c9f558a74d8ce561666745d">operator&gt;</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a6dcd57ee7c9f558a74d8ce561666745d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a971f9af6f6dd127c726c9238dcf95aa1"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:a971f9af6f6dd127c726c9238dcf95aa1"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#a971f9af6f6dd127c726c9238dcf95aa1">operator&lt;</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:a971f9af6f6dd127c726c9238dcf95aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7e9ed1f23b132f0a8c7cca091321807f"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga7e9ed1f23b132f0a8c7cca091321807f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; Q &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga7e9ed1f23b132f0a8c7cca091321807f">operator=</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:ga7e9ed1f23b132f0a8c7cca091321807f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga346f1bad63f2779ddcfc1fb4bbb533f7"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga346f1bad63f2779ddcfc1fb4bbb533f7"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; Q &gt; &amp;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga346f1bad63f2779ddcfc1fb4bbb533f7">operator=</a> (const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;r)</td></tr>
<tr class="separator:ga346f1bad63f2779ddcfc1fb4bbb533f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6eefa850d217b820020e76752abfc3eb"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga6eefa850d217b820020e76752abfc3eb"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga6eefa850d217b820020e76752abfc3eb">operator+</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;rhs) const</td></tr>
<tr class="memdesc:ga6eefa850d217b820020e76752abfc3eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Addition between two <a class="el" href="structeosio_1_1fixed__point32.html" title="32 bits representation of Fixed Point class. ">fixed_point32</a> variables and the result goes to <a class="el" href="structeosio_1_1fixed__point32.html" title="32 bits representation of Fixed Point class. ">fixed_point32</a>.  <a href="group__fixedpoint.html#ga6eefa850d217b820020e76752abfc3eb">More...</a><br /></td></tr>
<tr class="separator:ga6eefa850d217b820020e76752abfc3eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2c2084d8e4a80f4e75346174b23e78aa"><td class="memTemplParams" colspan="2">template&lt;uint8_t QR&gt; </td></tr>
<tr class="memitem:ga2c2084d8e4a80f4e75346174b23e78aa"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt;(Q &gt;QR)?Q:QR &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__fixedpoint.html#ga2c2084d8e4a80f4e75346174b23e78aa">operator-</a> (const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;rhs) const</td></tr>
<tr class="memdesc:ga2c2084d8e4a80f4e75346174b23e78aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Subtraction between two <a class="el" href="structeosio_1_1fixed__point32.html" title="32 bits representation of Fixed Point class. ">fixed_point32</a> variables and the result goes to <a class="el" href="structeosio_1_1fixed__point32.html" title="32 bits representation of Fixed Point class. ">fixed_point32</a>.  <a href="group__fixedpoint.html#ga2c2084d8e4a80f4e75346174b23e78aa">More...</a><br /></td></tr>
<tr class="separator:ga2c2084d8e4a80f4e75346174b23e78aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:adc0fb8c31ec9e07e6e3a4a7e04fe2471"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structeosio_1_1fixed__point32.html#adc0fb8c31ec9e07e6e3a4a7e04fe2471">val</a></td></tr>
<tr class="separator:adc0fb8c31ec9e07e6e3a4a7e04fe2471"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;uint8_t Q&gt;<br />
struct eosio::fixed_point32&lt; Q &gt;</h3>

<p>This class is implemented to to replace the floating point variables It can resolve floating point undetermenistic related issues</p>
<p>Example: </p><div class="fragment"><div class="line">fixed_point32&lt;17&gt; b(9.654);</div><div class="line">fixed_point32&lt;18&gt; c = a*b;</div><div class="line">fixed_point32&lt;24&gt; d = a+b+c;</div><div class="line">fixed_point32&lt;24&gt; e = b/a;</div></div><!-- fragment --> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af7b7646354bc934510228ca1bd53e6b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7b7646354bc934510228ca1bd53e6b1">&#9670;&nbsp;</a></span>fixed_point32()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::<a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td>
          <td class="paramname"><em>param</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a41ff73528b152e09796cde085fac502d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41ff73528b152e09796cde085fac502d">&#9670;&nbsp;</a></span>frac_part()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::frac_part </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad877eb1cdb682c9c1412204a304c1300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad877eb1cdb682c9c1412204a304c1300">&#9670;&nbsp;</a></span>int_part()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::int_part </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Get the integer part of the 64 bit fixed number </p><dl class="section return"><dt>Returns</dt><dd>Returns integer part of the fixed number</dd></dl>
<p>Example: </p><div class="fragment"><div class="line">fixed_point32&lt;18&gt; a(1234.455667)</div><div class="line"><a class="code" href="namespacestd.html">std</a>::cout &lt;&lt; a.int_part(); <span class="comment">// Output: 1234</span></div></div><!-- fragment --> 
</div>
</div>
<a id="a031984309854b00133383caa360dfaef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a031984309854b00133383caa360dfaef">&#9670;&nbsp;</a></span>operator+()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; (Q&gt;QR)?Q:QR &gt; <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8b853041cdc62f50f21067198ea5d20c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b853041cdc62f50f21067198ea5d20c">&#9670;&nbsp;</a></span>operator-()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; (Q&gt;QR)?Q:QR &gt; <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a971f9af6f6dd127c726c9238dcf95aa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a971f9af6f6dd127c726c9238dcf95aa1">&#9670;&nbsp;</a></span>operator<()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a58d7f252b05e4d5af1376741f8f6f80b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58d7f252b05e4d5af1376741f8f6f80b">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&amp; <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a3746c182de95876fcbf5784b620d4aed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3746c182de95876fcbf5784b620d4aed">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&amp; <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point64.html">fixed_point64</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7a0bf6847a222bf4055736839675a92c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a0bf6847a222bf4055736839675a92c">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6dcd57ee7c9f558a74d8ce561666745d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dcd57ee7c9f558a74d8ce561666745d">&#9670;&nbsp;</a></span>operator>()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
<div class="memtemplate">
template&lt;uint8_t QR&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::operator&gt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structeosio_1_1fixed__point32.html">fixed_point32</a>&lt; QR &gt; &amp;&#160;</td>
          <td class="paramname"><em>r</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="adc0fb8c31ec9e07e6e3a4a7e04fe2471"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc0fb8c31ec9e07e6e3a4a7e04fe2471">&#9670;&nbsp;</a></span>val</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint8_t Q&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> <a class="el" href="structeosio_1_1fixed__point32.html">eosio::fixed_point32</a>&lt; Q &gt;::val</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>contracts/eoslib/<a class="el" href="fixedpoint_8hpp_source.html">fixedpoint.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
